package com.souyun.serverbloguser.service.impl;

import com.souyun.serverbloguser.entity.TbUser;
import com.souyun.serverbloguser.mapper.IDbBlogMapper;
import com.souyun.serverbloguser.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements IUserService {

    @Autowired
    private IDbBlogMapper iDbBlogMapper;

    /**
     * TODO getUserById 根据ID获取用户信息
     * @param userId
     * @return
     */
    @Override
    public TbUser getUserById(int userId) {
        return iDbBlogMapper.getUserById(userId);
    }
}
